// ============================== 导入依赖 ============================== //

import CORE from '@/CORE'
import Client from '@api/equipment/api/AssetChangeHandleApi'

import AuditClass from '@api/equipment/model/ApprovalChangeHandleReq'

const CLIENT = CORE.grpcCLIENT(Client)

// ============================== 导出远程接口 ============================== //

export default {
  // —————————————————————————————— 审批 —————————————————————————————— //

  async audit(one, TIP = '审批') {
    const DTO = CORE.grpcDTO(AuditClass, one)
    await CORE.grpc(TIP, CLIENT, 'approvalChangeHandle', DTO)
    return CORE.grpcOK(TIP)
  },
}
